package com.buss.user.service;
import com.buss.user.entity.BnsUsersInfoEntity;

import org.jeecgframework.core.common.service.CommonService;

import java.io.Serializable;

public interface BnsUsersInfoServiceI extends CommonService{
	
 	public <T> void delete(T entity);
 	
 	public <T> Serializable save(T entity);
 	
 	public <T> void saveOrUpdate(T entity);
 	
 	/**
	 * 默认按钮-sql增强-新增操作
	 * @param id
	 * @return
	 */
 	public boolean doAddSql(BnsUsersInfoEntity t);
 	/**
	 * 默认按钮-sql增强-更新操作
	 * @param id
	 * @return
	 */
 	public boolean doUpdateSql(BnsUsersInfoEntity t);
 	/**
	 * 默认按钮-sql增强-删除操作
	 * @param id
	 * @return
	 */
 	public boolean doDelSql(BnsUsersInfoEntity t);

	public BnsUsersInfoEntity checkUserExits(String username, String password, String ask, String ans);
	
	/**
	 * 添加用户登录日志
	 * @param userId 用户ID
	 */
	public void addUserLog(String userId);

	/**
	 * 根据ID查找用户
	 * @param phone
	 * @return
	 */
	public BnsUsersInfoEntity findSingleResult(String phone);

	/**
	 * 初始化用户设置
	 * @param userId
	 */
	public void userSetInit(Integer userId);

	/**
	 * 初始化用户动态设置
	 * @param userId
	 */
	public void userDynamicInit(Integer userId);
	
	
}
